<?php

declare (strict_types=1);
namespace App\Model;

/**
 * @property int $sku_id
 * @property int $shop_id 商户id
 * @property string $sku_name sku名称
 * @property int $product_id 商品id
 * @property string $weight kg重量
 * @property string $volume 立方米
 * @property int $is_step_price 是否阶梯价
 * @property int $inventory 库存
 * @property int $min_quantity 起订量
 * @property string $single_price 单价
 * @property int $fileinfo_id 文件系统id
 * @property int $sales_volume 销量
 * @property string $step_price 阶梯价json
 * @property string $spec_value 参数json
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 修改时间
 * @property string $deleted_at 删除时间
 * @property int $create_by 创建人
 * @property int $update_by 修改人
 * @property int $delete_by 删除人
 * @property int $audit_id 修改记录id
 */
class SkuAudit extends CloudBase
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'fly_sku_audit';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['sku_id' => 'integer', 'shop_id' => 'integer', 'product_id' => 'integer', 'is_step_price' => 'integer', 'inventory' => 'integer',
        'min_quantity' => 'integer', 'fileinfo_id' => 'integer', 'sales_volume' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime',
        'create_by' => 'integer', 'update_by' => 'integer', 'delete_by' => 'integer', 'audit_id' => 'integer'
        ,'step_price' => 'array','spec_value' => 'array',
    ];
}